package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService{
    /**
     * 添加购物车模块
     * @param shoppingCartDTO
     * @return
     */
    void addCart(ShoppingCartDTO shoppingCartDTO);
    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> getShoppingCartList();
    /**
     *删除一个购物车的商品
     * @param shoppingCartDTO
     * @return
     */
    void subCart(ShoppingCartDTO shoppingCartDTO);
    /**
     * 清空购物车
     * @return
     */
    void cleanCart();
}
